package _Pan3D.program.shaders
{
	import _Pan3D.program.Shader3D;
	
	public class NewScanningShader extends Shader3D
	{
		public static var NEW_SCANNING_SHADER:String = "NEW_SCANNING_SHADER";
		public function NewScanningShader()
		{
			vertex = 
				"m44 vt0, va0, vc4 \n" +
				"m44 op, vt0, vc0 \n" +
				"mov v1, va1";
			fragment =
				"tex ft1, v1, fs0 <2d,clamp,repeat>\n"+   
				"slt ft2.w,fc5.w,ft1.w\n"+  //这部部分的。用来剔除透明通道。如树叶  用 fc5存，
				"mul ft2.x,fc5.x,ft1.x\n"+
				"mul ft2.y,fc5.y,ft1.y\n"+
				"mul ft2.z,fc5.z,ft1.z\n"+
				"sub ft2.w, ft2.w, fc5.x\n"+
				"kil ft2.w\n"+
				"mov oc, fc2";
		}
	}
}